package com.hunzi.service;

import com.hunzi.domain.User;

import java.util.List;

public interface UserService {
    int deleteByPrimaryKey(Integer uid);

    //添加用户
    int insert(User user);

    User selectByPrimaryKey(Integer uid);
    //查询所有用户
    List<User> selectAll();

    int updateByPrimaryKey(User uid);

    //用户登录功能
    User loginUser(  String username ,  String password);

    /*6.多添加组合查询*/
    List<User> selectByWhere(User condition);

    /*7.根据id数组一次删除多个*/
    void deleteByIds(int[] ids);

}
